import $api from './index';

interface RoleData {
    name?:string;
    path?:string;
    action?:string;
    pid:number | string;
}

export const getUser = () => $api.get('/users');
export const addRole = (data: RoleData) => $api.post('/role', data);
export const allRole = () => $api.get('/role');
export default {};
